package com.epoch.zuul.auth.dao;

import com.epoch.zuul.auth.role.Auth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author admin
 */
@Mapper
@Repository
public interface AuthDao {
    /**
     * 根据Id查找权限
     * @param authId
     * @return
     */
    Auth getAuthByAuthId(@Param("authId") Integer authId);

    /**
     * 获取权限列表
     * @return
     */
    List<Auth> getAllAuths();

    /**
     * 获取菜单
     * @return
     */
    List<Auth> getMenu();

}
